// 防抖函数
export default function(fn){
    let timer = null;
    return function(){
        clearTimeout(timer)
        timer = setTimeout(function(){
            fn();
        },2000)
    }
}